
import request from '@/utils/request'
let serviceName="/goods-service"


export function getTypeList() {
    return request({ url: serviceName+ "/type/list", method: "post" });
}
export function addType(type){
    return request({url:serviceName+"/type/insert",method:"post",data:type})
}
export function deleteType(id){
    return request({url:serviceName+"/type/delete",method:"post",params:{"id":id}})
}
export function updateType(type){
    return request({url:serviceName+"/type/update",method:"post",data:type})
}